package com.zzw.thread;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

public class BlockingQueueTest2 {

	public static void main(String[] args) {
		BlockingQueue<String> bq = new ArrayBlockingQueue<>(1);
		new Produce(bq).start();
		new Produce(bq).start();
		new Produce(bq).start();
		new Consum(bq).start();
	}
}